<?php

// +----------------------------------------------------------------------
// | Wechat Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2023 Anyon <zoujingli@qq.com>
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库：https://gitee.com/zoujingli/think-plugs-wechat
// | github 代码仓库：https://github.com/zoujingli/think-plugs-wechat
// +----------------------------------------------------------------------

namespace app\common\model\index;
use think\admin\Model;

/**
 * 登陆
 *
 * @class WechatFans
 * @package app\wechat\model
 */
class LoginModel extends Model
{
    protected $name = "ssh_login";


    public static function createData($host, $username, $password)
    {
        $login_obj = new self();
        $login_obj->host     = $host;
        $login_obj->username = $username;
        $login_obj->password = $password;
        $login_obj->save();

        return $login_obj;
    }
}

?>